package com.liuym.admin.service;

import com.liuym.admin.repository.model.bo.AdminBO;
import com.liuym.common.exception.AdminException;

import java.util.List;

/**
 * @author LiuYiMing
 * @date 2018/10/25 17:21
 * @describe：
 */
public interface AdminService {

    Long getStudentNumberById(int id);

    /**
     * 根据用户名获得管理员信息
     *
     * @param userName
     * @return
     */
    AdminBO getAdminByUserName(String userName) throws AdminException;

    List<AdminBO> getAllAdmin();

    void updateAdmin(AdminBO adminBO);

    void deleteAdminById(int id) throws AdminException;

    void addAdmin(AdminBO adminBO);

    AdminBO getAdminById(int id);

    String download(String path, String fileName);

    void logout(String token);
}